package util.qualitycontainers.qualities.generics;

import util.qualitycontainers.qualities.BuildComponent;


public class HealthQ extends BasicQuality
{

    int myCurrentHP;


    public HealthQ (Integer maxHP)
    {
        super(maxHP);
    }


    /**
     * Compares maximum HPs
     */
    @Override
    protected int compareTo (BuildComponent o)
    {
        return ((Integer) myState).compareTo(((HealthQ) o).getMaxHP());
    }


    /**
     * Get the maximum health points
     * 
     * @return
     */
    public int getMaxHP ()
    {
        return (Integer) myState;

    }


    /**
     * Returns the current health points carried by this state
     * 
     * @return
     */
    public int getCurrentHP ()
    {
        return myCurrentHP;
    }

}
